<?php namespace system\database\migrations;
use houdunwang\database\build\Migration;
use houdunwang\database\build\Blueprint;
use houdunwang\database\Schema;
class CreateAddons_searchTable extends Migration {
    //执行
	public function up() {
		Schema::create( 'addons_search', function ( Blueprint $table ) {
            $table->increments( 'id' );
            $table->timestamps();
            $table->string('keyword')->defaults('')->comment('搜索关键词');
            $table->integer('click')->defaults(0)->comment('搜索关键词次数');
        });
    }

    //回滚
    public function down() {
        Schema::drop( 'addons_search' );
    }
}